package com.cqnu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqnu.dao.SuperUserDao;
import com.cqnu.entity.SuperUser;
import com.cqnu.service.ISuperUserService;
@Service("superUserService")
public class SuperUserServiceImpl extends BaseServiceImpl implements ISuperUserService{

	@Resource
	private SuperUserDao superUserDao;
	
	@Override
	public List<SuperUser> find(Map<String, Object> map) {
		return superUserDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		return superUserDao.getTotal(map);
	}
	
	@Override
	public int update(SuperUser obj) {
		return superUserDao.update(obj);
	}

	@Override
	public int add(SuperUser obj) {
		return superUserDao.add(obj);
	}

	@Override
	public int delete(Integer id) {
		return superUserDao.delete(id);
	}

	@Override
	public SuperUser login(SuperUser sup) {
		return superUserDao.login(sup);
	}

	@Override
	public SuperUser getById(Integer id) {
		// TODO Auto-generated method stub
		return superUserDao.getById(id);
	}

}
